/*
 * Copyright 2009 BioTeam Inc
 * 
 * Licensed under License GNU LESSER GENERAL PUBLIC LICENSE version 3.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package net.bioteam.appweb.submit;

import java.io.File;

import net.bioteam.appweb.model.Program;
import net.bioteam.common.user.User;


public class SubmitData {
	/*
	 * WSDL: submit from web service
	 * WEB: submit from web
	 * WEBDATA: submit from web, but is from data-based analysis
	 */
	public static enum SubmitSource{WSDL, WEB, WEBDATA, UNKNOWN};
	protected Program program;
    protected ProgramValueBean Bean;
    protected String script;
    protected User user;
    protected File workdir;
    public File getWorkdir()
	{
		return workdir;
	}

	public void setWorkdir(File workdir)
	{
		this.workdir = workdir;
	}

	SubmitSource submitSource;
	/**
	 * When submit from data-based analysis, serviceID represents the service ID.
	 */
    String serviceID;

    public SubmitSource getSubmitSource()
	{
		return submitSource;
	}

	public void setSubmitSource(SubmitSource submitSource)
	{
		this.submitSource = submitSource;
	}

	public String getServiceID()
	{
		return serviceID;
	}

	public void setServiceID(String serviceID)
	{
		this.serviceID = serviceID;
	}

	public Program getProgram() {
        return program;
    }

    public void setProgram(Program program) {
        this.program = program;
    }

    public ProgramValueBean getBean() {
        return Bean;
    }

    public void setBean(ProgramValueBean bean) {
        Bean = bean;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
